import data from './data';

export default [
  {
    path: '/',
    component: () => import('../view/portalLayout.vue'),
    props: data.portal,
    children: [
      {
        path: '/login',
        components: {
          default: () => import('../view/accountEntry/login.vue'),
        },
        meta: '登录',
      },
      {
        path: '/recover',
        components: {
          default: () => import('../view/accountEntry/recover.vue'),
        },
        meta: [
          { title: '找回密码' },
        ],
      },
      {
        path: '/register',
        components: {
          default: () => import('../view/accountEntry/register.vue'),
        },
        props: {
          default: data.register,
        },
        meta: [
          { title: '注册' },
        ],
      },
      {
        path: '',
        props: {
          default: data.home,
        },
        components: {
          default: () => import('../view/home/home.vue'),
        },
        meta: '网站主页',
      },
      {
        path: 'policy',
        components: {
          default: () => import('../view/policy/index.vue'),
        },
        props: {
          default: data.policies,
        },
        meta: [{
        }, {
          title: '查询结果',
        }],
      },
      {
        path: 'policy/:id',
        components: {
          default: () => import('../view/policy/detail.vue'),
        },
        props: {
          default: data.policyDetails,
        },
        meta: [{
        }, {
          title: '详情',
        }],
      },
      {
        path: 'standard',
        props: {
          default: data.standards,
        },
        components: {
          default: () => import('../view/standardLibrary/index.vue'),
        },
        meta: [{
          title: '相关标准',
        }, {
          title: '查询结果',
        }],
      },
      {
        path: 'standard/:id',
        components: {
          default: () => import('../view/standardLibrary/detail.vue'),
        },
        props: {
          default: data.standardDetails,
        },
        meta: [{
          title: '相关标准',
        }, {
          title: '详情',
        }],
      },
      {
        path: 'dataset',
        props: {
          default: data.datasets,
        },
        components: {
          default: () => import('../view/resource/index.vue'),
        },
        meta: [{
          title: '资源库',
        }, {
          title: '查询结果',
        }],
      },
      {
        path: 'dataset/:id',
        components: {
          default: () => import('../view/resource/detail.vue'),
        },
        props: {
          default: data.datasetDetails,
        },
        meta: [{
          title: '资源库',
        }, {
          title: '详情',
        }],
      },
      {
        path: 'tools',
        props: {
          default: data.tools,
        },
        components: {
          default: () => import('../view/tool/index.vue'),
        },
        meta: [{
          title: '工具展示',
        }, {
          title: '查询结果',
        }],
      },
      {
        path: 'tools/:id',
        components: {
          default: () => import('../view/tool/detail.vue'),
        },
        props: {
          default: data.toolDetails,
        },
        meta: [{
          title: '工具展示',
        }, {
          title: '详情',
        }],
      },
      {
        path: 'news',
        props: {
          default: data.news,
        },
        components: {
          default: () => import('../view/news/index.vue'),
        },
        meta: [{
          title: '新闻公告',
        }, {
          title: '查询结果',
        }],
      },
      {
        path: 'news/:id',
        components: {
          default: () => import('../view/news/detail.vue'),
        },
        props: {
          default: data.newsDetails,
        },
        meta: [{
          title: '新闻公告',
        }, {
          title: '详情',
        }],
      },
      {
        path: 'cases',
        components: {
          default: () => import('../view/cases/index.vue'),
        },
        props: {
          default: data.cases,
        },
        meta: [{
          title: '应用案例',
        }, {
          title: '查询结果',
        }],
      },
      {
        path: 'cases/:id',
        components: {
          default: () => import('../view/cases/detail.vue'),
        },
        props: {
          default: data.caseDetails,
        },
        meta: [{
          title: '应用案例',
        }, {
          title: '详情',
        }],
      },
      {
        path: 'solutions',
        components: {
          default: () => import('../view/solutions/index.vue'),
        },
        props: {
          default: data.solutions,
        },
        meta: [{
          title: '技术方案',
        }, {
          title: '查询结果',
        }],
      },
      {
        path: 'solutions/:id',
        components: {
          default: () => import('../view/solutions/detail.vue'),
        },
        props: {
          default: data.solutionDetails,
        },
        meta: [{
          title: '技术方案',
        }, {
          title: '详情',
        }],
      },
      {
        path: 'test',
        components: {
          default: () => import('../view/olTest/index.vue'),
        },
        props: {
          default: data.oltest,
        },
        meta: [{
          title: '在线测试评估',
        }],
      },
      {
        path: 'test/industryeval',
        components: {
          default: () => import('../view/industryEval/index.vue'),
        },
        props: {
          default: data.industryEval,
        },
        meta: [{
          title: '行业应用检测',
        }, {
          title: '查询结果',
        }],
      },
      {
        path: 'test/industryeval/:id',
        components: {
          default: () => import('../view/industryEval/detail.vue'),
        },
        props: {
          default: data.industryEvalDetail,
        },
        meta: [{
          title: '行业应用检测',
        }, {
          title: '详情',
        }],
      },
      {
        path: 'oltraining',
        components: {
          default: () => import('../view/oltraining/index.vue'),
        },
        props: {
          default: data.olTraining,
        },
        meta: [{
          title: '在线培训',
        }, {
          title: '查询结果',
        }],
      },
      {
        path: 'oltraining/:id',
        components: {
          default: () => import('../view/oltraining/detail.vue'),
        },
        props: {
          default: data.olTrainingDetail,
        },
        meta: [{
          title: '在线培训',
        }, {
          title: '详情',
        }],
      },
      {
        path: 'achievement',
        components: {
          default: () => import('../view/achievement/index.vue'),
        },
        props: {
          default: data.achievement,
        },
        meta: [{
          title: '成果展示',
        }, {
          title: '查询结果',
        }],
      },
      {
        path: 'achievement/:id',
        components: {
          default: () => import('../view/achievement/detail.vue'),
        },
        props: {
          default: data.achievementDetail,
        },
        meta: [{
          title: '成果展示',
        }, {
          title: '详情',
        }],
      },
      {
        path: 'consult',
        components: {
          default: () => import('../view/consult/index.vue'),
        },
        props: {
          default: data.consult,
        },
        meta: [{
          title: '咨询信息',
        }, {
          title: '查询结果',
        }],
      },
      {
        path: 'consult/:id',
        components: {
          default: () => import('../view/consult/detail.vue'),
        },
        props: {
          default: data.consultDetail,
        },
        meta: [{
          title: '咨询信息',
        }, {
          title: '详情',
        }],
      },
      {
        path: 'basicinfo',
        components: {
          default: () => import('../view/basicinfo/index.vue'),
        },
        props: {
          default: data.basicinfo,
        },
        meta: [{
          title: '基础信息',
        }, {
          title: '查询结果',
        }],
      },
      {
        path: 'basicinfo/:id',
        components: {
          default: () => import('../view/basicinfo/detail.vue'),
        },
        props: {
          default: data.basicinfoDetail,
        },
        meta: [{
          title: '基础信息',
        }, {
          title: '详情',
        }],
      },
      {
        path: 'reports',
        components: {
          default: () => import('../view/reports/index.vue'),
        },
        props: {
          default: data.reports,
        },
        meta: [{
          title: '相关报告',
        }, {
          title: '查询结果',
        }],
      },
      {
        path: 'reports/:id',
        components: {
          default: () => import('../view/reports/detail.vue'),
        },
        props: {
          default: data.reportDetail,
        },
        meta: [{
          title: '相关报告',
        }, {
          title: '详情',
        }],
      },
      {
        path: 'search',
        components: {
          default: () => import('../view/search/index.vue'),
        },
        props: {
          default: data.search,
        },
        meta: [{
          title: '全站检索',
        }, {
          title: '查询结果',
        }],
      },
      {
        path: '/about',
        components: {
          default: () => import('../view/about/index.vue'),
        },
        props: {
          default: data.about,
        },
        meta: [{
          title: '关于我们',
        }],
      },
      {
        path: '/feedback',
        components: {
          default: () => import('../view/feedback/index.vue'),
        },
        props: {
          // default: data.feedback,
        },
        meta: [{
          title: '咨询留言',
        }],
      },
      {
        path: '/qa',
        components: {
          default: () => import('../view/qa/index.vue'),
        },
        props: {
          default: data.qa,
        },
        meta: [{
          title: '常见问题',
        }],
      },
      {
        path: '/committee',
        components: {
          default: () => import('../view/committee/index.vue'),
        },
        props: {
          default: data.committee,
        },
        meta: [{
          title: '标委会',
        }],
      },
      {
        path: '/uc/result/:id',
        components: {
          default: () => import('../view/mytest/detail.vue'),
        },
        props: {
          default: data.testResult,
        },
        meta: [{
          title: '用户中心',
        }, {
          title: '测试结果',
        }],
      },
      {
        path: '/sitemap',
        components: {
          default: () => import('../view/sitemap/index.vue'),
        },
        props: {
          default: data.sitemap,
        },
        meta: [{
          title: '网站地图',
        }],
      },

      {
        path: 'industryeval',
        components: {
          default: () => import('../view/industryEval/index.vue'),
        },
        props: {
          default: data.industryEval,
        },
        meta: [{
          title: '在线评测',
        }, {
          title: '查询结果',
        }],
      },
      {
        path: 'industryeval/:id',
        components: {
          default: () => import('../view/industryEval/detail.vue'),
        },
        props: {
          default: data.industryEvalDetail,
        },
        meta: [{
          title: '在线评测',
        }, {
          title: '详情',
        }],
      },

      {
        path: 'stddev',
        ref: 'standards>standards_development',
        meta: [{
          title: '标准制修订',
        }, {
          title: '查询结果',
        }],
      },
      {
        path: 'stddev/:id',
        ref: 'standards>standards_development_details',
        meta: [{
          title: '标准制修订',
        }, {
          title: '详情',
        }],
      },

      {
        path: '/aichat',
        name: 'aichat',
        component: () => import('../view/aichat/index.vue'),
        meta: [{
          title: 'AI聊天',
        }],
      },
    ],
  },
  {
    path: '/test/vm/:vm',
    components: {
      default: () => import('../view/olTest/xterm.vue'),
    },
    meta: [{
      title: '在线测试评估',
    }],
  },
];
